package cn.cy.mp.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.time.LocalDateTime;

/**
 * @Author : 残影
 * @Date: 2020/7/24 17:14
 */
@Data
@ToString
@NoArgsConstructor
@AllArgsConstructor
@TableName("tb_user")
public class User {
    /**
     * 指定主键的字段名
     */
    @TableId(value = "id", type = IdType.ID_WORKER)
    private Long id;

    /**
     * 指定对应字段名
     */
    @TableField("user_name")
    private String userName;

    private String password;

    @TableField("NAME")
    private String name;

    @TableField("AGE")
    private Integer age;

    @TableField("EMAIL")
    private String email;

    @TableField("birthday")
    private LocalDateTime birthday;
}
